Skip to content

Conversation

@Abdkhan14
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 6, 2025
true
);
const startTimestamp = 'start_timestamp' in event ? event.start_timestamp : undefined;
// TODO Abdullah Khan: Clean this up once getRepresentativeTraceEvent is moved to the TraceTree class
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed this here: #104503

@Abdkhan14 Abdkhan14 requested a review from gggritso December 9, 2025 01:33
@Abdkhan14 Abdkhan14 marked this pull request as ready for review December 9, 2025 01:33
…104503)

- Replaced the `getRepresentativeTraceEvent` util to
`TraceTree.findRepresentativeTraceNode`.
- By doing so we can traverse the generic `baseNode.children` nodes and
have access to all new functionality.

Also:
- Made use of the `baseNode.isEAPEvent` property
- Added a `baseNode.traceItemDataset` property

---------

Co-authored-by: Abdullah Khan <abdullahkhan@PG9Y57YDXQ.local>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
@Abdkhan14 Abdkhan14 requested review from a team as code owners December 12, 2025 17:22
@Abdkhan14 Abdkhan14 merged commit 83bba26 into abdk/trace-tree-node-uptime-check-guard-usage Dec 12, 2025
38 of 39 checks passed
@Abdkhan14 Abdkhan14 deleted the abdk/trace-tree-node-error-guards-usage branch December 12, 2025 17:23
? rep.event[OurLogKnownFieldKey.ID]
: rep.event.event_id
: rep.event.id
: '';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Wrong property checked in eventId condition

The condition for extracting eventId checks for OurLogKnownFieldKey.PROJECT_ID in the event, but then accesses OurLogKnownFieldKey.ID. The original code checked OurLogKnownFieldKey.ID in rep.event before accessing the ID field. While this works in practice because logs always contain both fields, it's checking the wrong property and could fail if the data contract changes. The condition should check for the property that's actually being accessed.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants